From: Marco Trevisan (TreviƱo) Date: Tue, 15 Oct 2019 19:13:59 +0000 (+0200) Subject: st/button: Add the clicked button to virtual function signature X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~516 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=320df13b651d03d20688d645963a114e3936a3a3;p=gnome-shell.git st/button: Add the clicked button to virtual function signature clicked signal includes a clicked mouse button parameter, but the vfunc signature doesn't include it, so it won't be passed to the functions when the signal is emitted. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/559 --- diff --git a/src/st/st-button.h b/src/st/st-button.h index 5ee45896e..df0d1ea0c 100644 --- a/src/st/st-button.h +++ b/src/st/st-button.h @@ -40,7 +40,7 @@ struct _StButtonClass void (* transition) (StButton *button); /* signals */ - void (* clicked) (StButton *button); + void (* clicked) (StButton *button, int clicked_button); }; StWidget *st_button_new (void);